﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.Sell.Domain
{
    
        // 表示客户信息的类
        // Represents the customer information class
        public class Customer
        {
            [Key]
            /// <summary>
            /// 客户编号，使用 int 类型
            /// Customer ID, using int type
            /// </summary>
            public int ?CustomerId { get; set; }

            /// <summary>
            /// 客户名称
            /// Customer name
            /// </summary>
            public string ?CustomerName { get; set; }
            public string ? Customernumber { get; set; }
        
            /// <summary>
            /// 客户传真
            /// Customer fax number
            /// </summary>
            public string ?Fax { get; set; }

            /// <summary>
            /// 客户电话
            /// Customer phone number
            /// </summary>
            public string ?Phone { get; set; }

            /// <summary>
            /// 客户邮箱
            /// Customer email
            /// </summary>
            public string ?Email { get; set; }

            /// <summary>
            /// 备注信息
            /// Remarks
            /// </summary>
            public string ?Remarks { get; set; }
        public virtual ICollection<Contact> Contacts { get; set; } = new List<Contact>();
    }
}
